package com.shujia.singleton;

public class HungrySinleton {

    /**
     * 饿汉模式，再类加载的时候先创建好类的对象，
     * 缺点：占用内存资源
     */

    private static HungrySinleton hungrySinleton = new HungrySinleton();


    public static HungrySinleton getInstance() {
        return hungrySinleton;
    }


}
